<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"
%><%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"
%><%@taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="d"
%><%@taglib uri="http://janrain4j.googlecode.com/tags" prefix="j"
%><%@taglib uri="http://www.springframework.org/security/tags" prefix="s"
%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><f:bundle basename="message">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><f:message key="title.default" var="title"/><d:title default="${ title }" /> - <f:message key="application"/></title>
		<link rel="Shortcut Icon" href="<c:url value="/favicon.ico"/>" />
		<d:head />
	</head>
	<body>
		<div class="page">
			<div class="page-header">
				<s:authorize access="!isAuthenticated()">
					<a href="<c:url value="/login"/>"><f:message key="login"/></a>
				</s:authorize>
				<s:authorize access="isAuthenticated()">
					<s:authentication var="profile" property="principal.userDataResponse.profile" />
					<span><f:message key="welcome">
						<f:param value="${ profile.displayName }"></f:param>
						<f:param value="${ profile.providerName }"></f:param>
					</f:message></span>
					(<a href="<c:out value="${ profile.identifier }"/>" target="_blank">view</a>,
					<a href="<c:url value="/sign_out"/>"><f:message key="logout"/></a>)
				</s:authorize>
			</div>
			<div class="page-content">
				<h1><f:message key="application"/></h1>
				<h2><d:title default="${ title }" /></h2>
				<d:body />
			</div>
			<div class="page-footer"></div>
		</div>
	</body>
</f:bundle></html>